﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FutureWaterController : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    private void OnTriggerEnter2D(Collider2D collision)
    {
        GameObject target = collision.gameObject;
        if (target.layer == 10 || target.layer == 8)
        {
            target.SendMessage("EnterWater");
        }
    }

    private void OnTriggerExit2D(Collider2D collision)
    {
        GameObject target = collision.gameObject;
        if (target.layer == 10 || target.layer == 8)
        {
            target.SendMessage("ExitWater");
        }
    }

    private void GetHurt(int hurt)
    {

    }
}
